package com.ganzalang.gmall.socket.client;

import java.io.IOException;
import java.net.Socket;
import java.util.Scanner;

/**
 * @author Ganzalang
 * @description
 * @Date 2021/6/20 16:55
 */
public class WechatClient {
    public static void main(String[] args) {
        try {
            Socket socket = new Socket("127.0.0.1",8080);
            Scanner scanner = new Scanner(System.in);
            String txt = scanner.next();
            socket.getOutputStream().write(txt.getBytes());
        } catch (IOException e) {
            e.printStackTrace();
        }


    }
}
